import { http } from "@/utils/http";

/** 获取所有职业方向 */
export const getOrientation = (params?: object) => {
  return http.request<any>("get", "/orientation/getOrientation", { params });
};

/** 删除职业方向 */
export const deleteOrientation = (params?: object) => {
  return http.request<any>("delete", "/orientation/deleteOrientation", {
    params
  });
};

/** 添加职业方向 */
export const addOrientation = (data?: object) => {
  return http.request<any>("post", "/orientation/addOrientation", { data });
};

/** 修改职业方向 */
export const updateOrientation = (data?: object) => {
  return http.request<any>("put", "/orientation/updateOrientation", { data });
};
